<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // 使用对象来描述一个人
    var student = {name:'李二',age:'18',id:'99999',class:'311'};
    student.love = function(){
        console.log('除了睡,就是吃')
    }
    student.love();
    student.show = function(){
        console.log('大家好,我叫'+student.name+',今年'+student.age+',我的学生号码是'+student.id+',我的班级是'+student.class+',我的个人爱好是除了睡,就是吃','我的自我介绍到此结束,谢谢大家')
    }
    student.show();
    // 使用对象来描述一只狗
    var Animal = {name:'大黄',age:'18',Dogcard:'66666',type:'蓝色'}
</script>
</html>